package com.example.zlloggingservice.dto.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @Author zhenliu（孙凌岳）
 * @Description AI-操作日志查询请求DTO
 * @Date 2025/6/20 16:36
 * @Version 1.0
 */
@Data
@ApiModel(description = "操作日志查询请求DTO")
public class OperationLogReqDTO implements Serializable {
    @ApiModelProperty(value = "用户ID", example = "123456")
    private Long userId;

    @ApiModelProperty(value = "用户名", example = "zhangsan")
    private String username;

    @ApiModelProperty(value = "操作行为", example = "修改用户")
    private String action;

    @ApiModelProperty(value = "请求URL", example = "/api/user/update")
    private String url;

    @ApiModelProperty(value = "请求IP地址", example = "192.168.1.1")
    private String ip;

    @ApiModelProperty(value = "操作状态（0失败，1成功）", example = "1")
    private Integer status;

    @ApiModelProperty(value = "开始时间", example = "2025-06-20T00:00:00")
    private LocalDateTime startTime;

    @ApiModelProperty(value = "结束时间", example = "2025-06-20T23:59:59")
    private LocalDateTime endTime;

    @ApiModelProperty(value = "页码", example = "1")
    private Integer pageNum;

    @ApiModelProperty(value = "每页条数", example = "10")
    private Integer pageSize;
}
